$OpenBSD: patch-libxslt_extra_c,v 1.5 2012/09/30 12:21:34 jasper Exp $
--- libxslt/extra.c.orig	Thu Sep 27 15:14:23 2012
+++ libxslt/extra.c	Thu Sep 27 15:14:46 2012
@@ -243,7 +243,7 @@ xsltFunctionLocalTime(xmlXPathParserContextPtr ctxt, i
      * Calling localtime() has the side-effect of setting timezone.
      * After we know the timezone, we can adjust for it
      */
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) || !defined(__OpenBSD__)
     lmt = gmt - timezone;
 #else	/* FreeBSD DOESN'T have such side-ffect */
     lmt = gmt - local_tm->tm_gmtoff;
